package com.lggry.operator;

public class OperatorDemo2 {
    public static void main(String[] args) {
        print(10);
    }

    public static void print(int a){
        int b = a++; //先用后加
        System.out.println(a);
        System.out.println(b);

        int c = ++a; //先加后用
        System.out.println(a);
        System.out.println(c);
    }
}
